package com.sql.service.impl;

import com.sql.dao.BorrowInfoMapping;
import com.sql.model.BorrowInfo;
import com.sql.service.BorrowInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * Created by 走过全世界。 on 2017/6/1 0001.
 */
@Service("borrowInfoServiceImpl")
public class BorrowInfoServiceImpl implements BorrowInfoService {

    @Autowired
    private BorrowInfoMapping borrowInfoMapping;

    public ArrayList<BorrowInfo> getBorrowedBooks(String username) {
        return borrowInfoMapping.selectBorrowedBook(username);
    }
}
